package com.monboo.utils
{
	import flash.display.Stage;

	public class GetStage
	{
		private static var instance:GetStage;
		private var _stage:Stage;
		
		public function GetStage()
		{
			
		}
		
		public static function theStage():Stage{
			
			if(instance != null){
				return instance._stage;
			}else{
				return instance._stage = null;
				trace("请在文档类执行initGetStage方法!");
			}
			
		}
		
		public static function initGetStage(stage:Stage):void{
			
			if(instance==null){
				instance = new GetStage();
			}
			instance._stage = stage;
			
		}
	}
}